from django.urls import path

# from . import views
import sys
import os

# 假设 views.py 在父目录的某个子目录中
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '.')))

import views
urlpatterns = [
    path("index/", views.index),

    path('categories/', views.category_list, name='category_list'),
    path('categories/<int:parent_id>/', views.subcategory_list, name='subcategory_list'),
]
